import * as constants from './constants'

export default (state, action) => {
  switch (action.type) {
    case constants.ADD:
      return { count: state.count + 1 - 0 };
    case constants.REDUCE:
      return { count: state.count - 1 };
    default:
      return { count: 10 };
  }
}